package cn.edu.ustc.xrovers.dto;

import java.util.List;

import cn.edu.ustc.xrovers.dao.SamplesDao;
import cn.edu.ustc.xrovers.daoImpl.SamplesDaoImpl;
import cn.edu.ustc.xrovers.model.Samples;

/**
 * 担保风险系数计算样本
 * @author paddy
 *
 */
public class Sample {
	
	private static final SamplesDao sd=new SamplesDaoImpl();

	/**
	 * 担保训练样本
	 */
	public  static final List<Samples> warrantySample=sd.findWarrantySample();//担保样本
	
	/**
	 * 分类训练样本
	 */
	public  static final List<Samples> classificationSample=sd.findClassificatioinSample();//分类样本
	
	static{
//		Random random=new Random(1000);
//		for(int i=0;i<60;i++){
//			double[] sample=new double[25];
//			warrantySample.add(sample);
//			for(int j=0;j<sample.length;j++){
//				sample[j]=random.nextDouble();
//			}
//		}
//		warrantySample.add(new double[]{1.78,1.14,0.9});
//		warrantySample.add(new double[]{1.96,1.18,0.9});
//		warrantySample.add(new double[]{1.86,1.20,0.9});
//		warrantySample.add(new double[]{1.72,1.24,0.1});
//		warrantySample.add(new double[]{2.00,1.26,0.9});
//		warrantySample.add(new double[]{2.00,1.28,0.9});
//		warrantySample.add(new double[]{1.96,1.30,0.9});
//		warrantySample.add(new double[]{1.74,1.36,0.1});
//		warrantySample.add(new double[]{1.64,1.38,0.1});
//		warrantySample.add(new double[]{1.82,1.38,0.1});
//		warrantySample.add(new double[]{1.90,1.38,0.1});
//		warrantySample.add(new double[]{1.70,1.40,0.1});
//		warrantySample.add(new double[]{1.82,1.48,0.1});
//		warrantySample.add(new double[]{1.82,1.54,0.1});
//		warrantySample.add(new double[]{2.08,1.56,0.1});

	}

}
